package com.wjh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjh.pojo.Role;
import org.apache.ibatis.annotations.Param;

import javax.websocket.server.PathParam;
import java.util.List;


/**
 * 角色表(Role)表数据库访问层
 *
 * @author makejava
 * @since 2023-03-17 13:15:51
 */
public interface RoleMapper extends BaseMapper<Role> {


    /**
     *
     * 根据用户Id查询角色信息
     */
    List<String> selectRolesById(@Param("userId")Integer id);
}
